package com.oracle.application.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 莉丝妲黛
 * @since 2021-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Orders对象", description="")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "编号")
    private String ordersn;

    @ApiModelProperty(value = "总金额")
    private BigDecimal totalprice;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "收货地址")
    private String address;

    @ApiModelProperty(value = "地区")
    private String area;

    @ApiModelProperty(value = "邮编")
    private String zipcode;

    @ApiModelProperty(value = "会员")
    private Integer member;

    @ApiModelProperty(value = "收货人")
    private String consigenn;

    @ApiModelProperty(value = "订单状态0-未确认 1-已确认")
    private Integer orderstatus;

    @ApiModelProperty(value = "支付状态")
    private Integer paystatus;

    @ApiModelProperty(value = "支付方式")
    private String paymethod;

    /**
     * 超时时间
     */
    private LocalDateTime createdate;

    private LocalDateTime modifydate;

    @ApiModelProperty(value = "超时时间 默认30分钟有限")
    private LocalDateTime expirtdate;


}
